#include "Primitives.h"

int planeStepSize;
Plane::Plane(double x, double y, double z){
	this->x = x;
	this->y = y;
	this->z = z;
	planeStepSize = 10;
}


void Plane::render(){
	glBegin(GL_QUADS);
	for(int i = 0; i < x-planeStepSize; i+=planeStepSize){
		for(int j = 0; j < z-planeStepSize; j+=planeStepSize){

			glVertex3f(i, y, j);
			glVertex3f(i, y, j+planeStepSize);
			glVertex3f(i+planeStepSize, y, j+planeStepSize);
			glVertex3f(i+planeStepSize, y, j);
		}
	}
	glEnd();
}

void Plane::boundingSphere(Matrix4 *c, Texture *t){


}
